Skip to content

Commit

Permalink
Run generation
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanzh committed Jul 3, 2024
1 parent e98d736 commit cfee836
Show file tree
Hide file tree
Showing 39 changed files with 111 additions and 111 deletions.
7 changes: 4 additions & 3 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
lockVersion: 2.0.0
id: c7830d5c-39eb-428e-bde1-daaba29fa325
management:
docChecksum: 47a8e0c38aef678b4bd22e62b835f7f6
docChecksum: 98da38e8e0c85f5f2a1040a20ca2c1f0
docVersion: 0.1.0
speakeasyVersion: 1.326.0
generationVersion: 2.359.0
releaseVersion: 0.9.0
configChecksum: 4be0e73d736a91b4450810af1508b18d
releaseVersion: 0.10.1
configChecksum: 9812e3296273a82383ec1dd21a926894
features:
terraform:
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.4
core: 3.23.0
globalSecurity: 2.81.6
globalServerURLs: 2.82.1
nameOverrides: 2.81.2
retries: 2.81.1
sets: 0.1.2
unions: 2.81.15
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: true
terraform:
version: 0.9.0
version: 0.10.1
additionalDataSources: []
additionalDependencies: {}
additionalResources: []
Expand Down
8 changes: 4 additions & 4 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ speakeasyVersion: 1.326.0
sources:
FastAPI:
sourceNamespace: fast-api
sourceRevisionDigest: sha256:9729f645d518360a88320f81a2ba80e0371d4baba9a647d30f5aa51fb7175a6d
sourceBlobDigest: sha256:33dd5da8b29b16326caec7e4853e53bf9a6173ad68b2934df581546f312e45d1
sourceRevisionDigest: sha256:ccfe9051b8e4db23f0ac9796e47d59fd051514b45d9acbc68400c9acbf02de70
sourceBlobDigest: sha256:01b1e1f46d505eb175420f0e791c7e96a5b14724ebe9cbc02e831752feb4e49f
tags:
- latest
targets:
lumos-terraform-provider-target:
source: FastAPI
sourceNamespace: fast-api
sourceRevisionDigest: sha256:9729f645d518360a88320f81a2ba80e0371d4baba9a647d30f5aa51fb7175a6d
sourceBlobDigest: sha256:33dd5da8b29b16326caec7e4853e53bf9a6173ad68b2934df581546f312e45d1
sourceRevisionDigest: sha256:ccfe9051b8e4db23f0ac9796e47d59fd051514b45d9acbc68400c9acbf02de70
sourceBlobDigest: sha256:01b1e1f46d505eb175420f0e791c7e96a5b14724ebe9cbc02e831752feb4e49f
outLocation: /Users/ethanzh/terraform-provider-lumos
workflow:
workflowVersion: 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ terraform {
required_providers {
lumos = {
source = "teamlumos/lumos"
version = "0.9.0"
version = "0.10.1"
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/app.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ App DataSource

```terraform
data "lumos_app" "my_app" {
app_id = "...my_app_id..."
id = "badd3923-8576-4e90-a0d0-22ab47bbd04e"
}
```

Expand All @@ -25,7 +25,7 @@ data "lumos_app" "my_app" {

- `allow_multiple_permission_selection` (Boolean) Determines whether users can request multiple permissions at once.This field will be removed in subsequent API versions.
- `app_class_id` (String) The non-unique ID of the service associated with this requestable permission. Depending on how it is sourced in Lumos, this may be the app's name, website, or other identifier.
- `id` (String) The ID of this app.
- `id` (String) The ID of this resource.
- `instance_id` (String) The non-unique ID of the instance associated with this app. This will be the Okta app id if it’s an Okta app, or will be marked as custom_app_import if manually uploaded into Lumos.
- `logo_url` (String) The URL of the logo of this app.
- `request_instructions` (String) The request instructions.
Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/app_store_app_settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Read-Only:

Read-Only:

- `groups` (Attributes List) The groups allowed to request this permission. (see [below for nested schema](#nestedatt--request_flow--allowed_groups--groups))
- `groups` (Attributes Set) The groups allowed to request this permission. (see [below for nested schema](#nestedatt--request_flow--allowed_groups--groups))
- `type` (String) The type of this allowed groups config, can be all groups or specific. must be one of ["ALL_GROUPS", "SPECIFIED_GROUPS"]

<a id="nestedatt--request_flow--allowed_groups--groups"></a>
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/apps.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Apps DataSource
data "lumos_apps" "my_apps" {
exact_match = false
name_search = "...my_name_search..."
page = 7
size = 9
page = 4
size = 6
}
```

Expand Down
8 changes: 4 additions & 4 deletions docs/data-sources/groups.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ Groups DataSource
```terraform
data "lumos_groups" "my_groups" {
app_id = "...my_app_id..."
exact_match = true
exact_match = false
integration_specific_id = "...my_integration_specific_id..."
name = "Mae Cormier"
page = 3
size = 5
name = "Otis Will"
page = 7
size = 10
}
```

Expand Down
6 changes: 3 additions & 3 deletions docs/data-sources/requestable_permission.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RequestablePermission DataSource

```terraform
data "lumos_requestable_permission" "my_requestablepermission" {
permission_id = "...my_permission_id..."
id = "d39948da-9690-4a77-b8cc-63d4de7a4893"
}
```

Expand All @@ -26,7 +26,7 @@ data "lumos_requestable_permission" "my_requestablepermission" {
- `app_class_id` (String) The non-unique ID of the service associated with this requestable permission. Depending on how it is sourced in Lumos, this may be the app's name, website, or other identifier.
- `app_id` (String) The ID of the app associated with this requestable permission.
- `app_instance_id` (String) The ID of the instance associated with this requestable permission.
- `id` (String) The ID of this requestable permission.
- `id` (String) The ID of this resource.
- `label` (String) The label of this requestable permission.
- `request_config` (Attributes) The request config associated with this requestable permission. (see [below for nested schema](#nestedatt--request_config))
- `type` (String) An enumeration. must be one of ["SYNCED", "NATIVE"]
Expand Down Expand Up @@ -60,7 +60,7 @@ Read-Only:

Read-Only:

- `groups` (Attributes List) The groups allowed to request this permission. (see [below for nested schema](#nestedatt--request_config--allowed_groups--groups))
- `groups` (Attributes Set) The groups allowed to request this permission. (see [below for nested schema](#nestedatt--request_config--allowed_groups--groups))
- `type` (String) The type of this allowed groups config, can be all groups or specific. must be one of ["ALL_GROUPS", "SPECIFIED_GROUPS"]

<a id="nestedatt--request_config--allowed_groups--groups"></a>
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/users.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ Users DataSource
```terraform
data "lumos_users" "my_users" {
exact_match = false
page = 10
page = 2
search_term = "...my_search_term..."
size = 6
size = 4
}
```

Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ terraform {
required_providers {
lumos = {
source = "teamlumos/lumos"
version = "0.9.0"
version = "0.10.1"
}
}
}
Expand Down
1 change: 0 additions & 1 deletion docs/resources/app.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ App Resource

```terraform
resource "lumos_app" "my_app" {
app_id = "...my_app_id..."
category = "...my_category..."
description = "...my_description..."
logo_url = "...my_logo_url..."
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/app_store_app.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ Read-Only:

Optional:

- `groups` (Attributes List) The groups allowed to request this permission. Requires replacement if changed. (see [below for nested schema](#nestedatt--request_flow--allowed_groups--groups))
- `groups` (Attributes Set) The groups allowed to request this permission. Requires replacement if changed. (see [below for nested schema](#nestedatt--request_flow--allowed_groups--groups))
- `type` (String) The type of this allowed groups config, can be all groups or specific. Requires replacement if changed. ; must be one of ["ALL_GROUPS", "SPECIFIED_GROUPS"]; Default: "ALL_GROUPS"

<a id="nestedatt--request_flow--allowed_groups--groups"></a>
Expand Down
5 changes: 2 additions & 3 deletions docs/resources/pre_approval_rule.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ PreApprovalRule Resource

```terraform
resource "lumos_pre_approval_rule" "my_preapprovalrule" {
app_id = "...my_app_id..."
justification = "...my_justification..."
pre_approval_rule_id = "...my_pre_approval_rule_id..."
app_id = "...my_app_id..."
justification = "...my_justification..."
}
```

Expand Down
3 changes: 1 addition & 2 deletions docs/resources/requestable_permission.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ resource "lumos_requestable_permission" "my_requestablepermission" {
app_id = "...my_app_id..."
app_instance_id = "...my_app_instance_id..."
label = "...my_label..."
permission_id = "...my_permission_id..."
}
```

Expand Down Expand Up @@ -73,7 +72,7 @@ Read-Only:

Optional:

- `groups` (Attributes List) The groups allowed to request this permission. (see [below for nested schema](#nestedatt--request_config--allowed_groups--groups))
- `groups` (Attributes Set) The groups allowed to request this permission. (see [below for nested schema](#nestedatt--request_config--allowed_groups--groups))
- `type` (String) The type of this allowed groups config, can be all groups or specific. must be one of ["ALL_GROUPS", "SPECIFIED_GROUPS"]; Default: "ALL_GROUPS"

<a id="nestedatt--request_config--allowed_groups--groups"></a>
Expand Down
2 changes: 1 addition & 1 deletion examples/data-sources/lumos_app/data-source.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
data "lumos_app" "my_app" {
app_id = "...my_app_id..."
id = "badd3923-8576-4e90-a0d0-22ab47bbd04e"
}
4 changes: 2 additions & 2 deletions examples/data-sources/lumos_apps/data-source.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
data "lumos_apps" "my_apps" {
exact_match = false
name_search = "...my_name_search..."
page = 7
size = 9
page = 4
size = 6
}
8 changes: 4 additions & 4 deletions examples/data-sources/lumos_groups/data-source.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
data "lumos_groups" "my_groups" {
app_id = "...my_app_id..."
exact_match = true
exact_match = false
integration_specific_id = "...my_integration_specific_id..."
name = "Mae Cormier"
page = 3
size = 5
name = "Otis Will"
page = 7
size = 10
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
data "lumos_requestable_permission" "my_requestablepermission" {
permission_id = "...my_permission_id..."
id = "d39948da-9690-4a77-b8cc-63d4de7a4893"
}
4 changes: 2 additions & 2 deletions examples/data-sources/lumos_users/data-source.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
data "lumos_users" "my_users" {
exact_match = false
page = 10
page = 2
search_term = "...my_search_term..."
size = 6
size = 4
}
2 changes: 1 addition & 1 deletion examples/provider/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
lumos = {
source = "teamlumos/lumos"
version = "0.9.0"
version = "0.10.1"
}
}
}
Expand Down
1 change: 0 additions & 1 deletion examples/resources/lumos_app/resource.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
resource "lumos_app" "my_app" {
app_id = "...my_app_id..."
category = "...my_category..."
description = "...my_description..."
logo_url = "...my_logo_url..."
Expand Down
5 changes: 2 additions & 3 deletions examples/resources/lumos_pre_approval_rule/resource.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
resource "lumos_pre_approval_rule" "my_preapprovalrule" {
app_id = "...my_app_id..."
justification = "...my_justification..."
pre_approval_rule_id = "...my_pre_approval_rule_id..."
app_id = "...my_app_id..."
justification = "...my_justification..."
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ resource "lumos_requestable_permission" "my_requestablepermission" {
app_id = "...my_app_id..."
app_instance_id = "...my_app_instance_id..."
label = "...my_label..."
permission_id = "...my_permission_id..."
}
7 changes: 3 additions & 4 deletions internal/provider/app_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ func (r *AppDataSource) Schema(ctx context.Context, req datasource.SchemaRequest
Description: `The non-unique ID of the service associated with this requestable permission. Depending on how it is sourced in Lumos, this may be the app's name, website, or other identifier.`,
},
"id": schema.StringAttribute{
Computed: true,
Description: `The ID of this app.`,
Required: true,
},
"instance_id": schema.StringAttribute{
Computed: true,
Expand Down Expand Up @@ -134,9 +133,9 @@ func (r *AppDataSource) Read(ctx context.Context, req datasource.ReadRequest, re
return
}

appID := data.ID.ValueString()
id := data.ID.ValueString()
request := operations.GetAppRequest{
AppID: appID,
ID: id,
}
res, err := r.client.Core.GetApp(ctx, request)
if err != nil {
Expand Down
18 changes: 9 additions & 9 deletions internal/provider/app_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,9 @@ func (r *AppResource) Create(ctx context.Context, req resource.CreateRequest, re
}
data.RefreshFromSharedApp(res.App)
refreshPlan(ctx, plan, &data, resp.Diagnostics)
appID := data.ID.ValueString()
id := data.ID.ValueString()
request1 := operations.GetAppRequest{
AppID: appID,
ID: id,
}
res1, err := r.client.Core.GetApp(ctx, request1)
if err != nil {
Expand Down Expand Up @@ -238,9 +238,9 @@ func (r *AppResource) Read(ctx context.Context, req resource.ReadRequest, resp *
return
}

appID := data.ID.ValueString()
id := data.ID.ValueString()
request := operations.GetAppRequest{
AppID: appID,
ID: id,
}
res, err := r.client.Core.GetApp(ctx, request)
if err != nil {
Expand Down Expand Up @@ -286,10 +286,10 @@ func (r *AppResource) Update(ctx context.Context, req resource.UpdateRequest, re
return
}

appID := data.ID.ValueString()
id := data.ID.ValueString()
appInputCreate := *data.ToSharedAppInputCreate()
request := operations.UpdateAppRequest{
AppID: appID,
ID: id,
AppInputCreate: appInputCreate,
}
res, err := r.client.Core.UpdateApp(ctx, request)
Expand All @@ -314,9 +314,9 @@ func (r *AppResource) Update(ctx context.Context, req resource.UpdateRequest, re
}
data.RefreshFromSharedApp(res.App)
refreshPlan(ctx, plan, &data, resp.Diagnostics)
appId1 := data.ID.ValueString()
id1 := data.ID.ValueString()
request1 := operations.GetAppRequest{
AppID: appId1,
ID: id1,
}
res1, err := r.client.Core.GetApp(ctx, request1)
if err != nil {
Expand Down Expand Up @@ -367,5 +367,5 @@ func (r *AppResource) Delete(ctx context.Context, req resource.DeleteRequest, re
}

func (r *AppResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) {
resp.Diagnostics.Append(resp.State.SetAttribute(ctx, path.Root("id").AtName("id"), req.ID)...)
resp.Diagnostics.Append(resp.State.SetAttribute(ctx, path.Root("id"), req.ID)...)
}
8 changes: 4 additions & 4 deletions internal/provider/appstoreapp_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,11 +395,11 @@ func (r *AppStoreAppResource) Schema(ctx context.Context, req resource.SchemaReq
},
Optional: true,
Attributes: map[string]schema.Attribute{
"groups": schema.ListNestedAttribute{
"groups": schema.SetNestedAttribute{
Computed: true,
PlanModifiers: []planmodifier.List{
listplanmodifier.RequiresReplaceIfConfigured(),
speakeasy_listplanmodifier.SuppressDiff(speakeasy_listplanmodifier.ExplicitSuppress),
PlanModifiers: []planmodifier.Set{
setplanmodifier.RequiresReplaceIfConfigured(),
speakeasy_setplanmodifier.SuppressDiff(speakeasy_setplanmodifier.ExplicitSuppress),
},
Optional: true,
NestedObject: schema.NestedAttributeObject{
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/appstoreappsettings_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func (r *AppStoreAppSettingsDataSource) Schema(ctx context.Context, req datasour
"allowed_groups": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
"groups": schema.ListNestedAttribute{
"groups": schema.SetNestedAttribute{
Computed: true,
NestedObject: schema.NestedAttributeObject{
Attributes: map[string]schema.Attribute{
Expand Down
Loading

0 comments on commit cfee836

Please sign in to comment.