-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump goauthentik.io/api/v3 from 3.2023106.1 to 3.2023106.3 (#460)
Bumps [goauthentik.io/api/v3](https://github.com/goauthentik/client-go) from 3.2023106.1 to 3.2023106.3. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/goauthentik/client-go/releases">goauthentik.io/api/v3's releases</a>.</em></p> <blockquote> <h2>v3.2023106.3</h2> <h4>What's Changed</h4> <hr /> <h5><code>GET</code> /propertymappings/rac/</h5> <h6>Parameters:</h6> <p>Changed: <code>managed</code> in <code>query</code></p> <h2>v3.2023106.2</h2> <h4>What's Changed</h4> <hr /> <h5><code>GET</code> /sources/oauth/source_types/</h5> <h6>Return Type:</h6> <p>Changed response : <strong>200 OK</strong></p> <ul> <li> <p>Changed content type : <code>application/json</code></p> <p>Changed items (object): > Serializer for SourceType</p> <p>New required properties:</p> <ul> <li><code>verbose_name</code></li> </ul> <p>New optional properties:</p> <ul> <li><code>slug</code></li> </ul> <ul> <li> <p>Added property <code>verbose_name</code> (string)</p> </li> <li> <p>Deleted property <code>slug</code> (string)</p> </li> </ul> </li> </ul> <h5><code>GET</code> /sources/oauth/{slug}/</h5> <h6>Return Type:</h6> <p>Changed response : <strong>200 OK</strong></p> <ul> <li> <p>Changed content type : <code>application/json</code></p> <ul> <li>Changed property <code>type</code> (object) <blockquote> <p>Serializer for SourceType</p> </blockquote> </li> </ul> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/goauthentik/client-go/commit/2b3912d0a54bdd5289ec0746240eeb74393c6003"><code>2b3912d</code></a> Update API Client</li> <li><a href="https://github.com/goauthentik/client-go/commit/2ea3dae112f70e4a9f8f8f64b3712792c5cac9e2"><code>2ea3dae</code></a> Update API Client</li> <li>See full diff in <a href="https://github.com/goauthentik/client-go/compare/v3.2023106.1...v3.2023106.3">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details>
- Loading branch information
Showing
13 changed files
with
137 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
page_title: "authentik_property_mapping_rac Data Source - terraform-provider-authentik" | ||
subcategory: "Customization" | ||
description: |- | ||
Get RAC Property mappings | ||
--- | ||
|
||
# authentik_property_mapping_rac (Data Source) | ||
|
||
Get RAC Property mappings | ||
|
||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Optional | ||
|
||
- `ids` (List of String) List of ids when `managed_list` is set. Generated. | ||
- `managed` (String) | ||
- `managed_list` (List of String) Retrieve multiple property mappings | ||
- `name` (String) | ||
- `settings` (String) Generated. | ||
|
||
### Read-Only | ||
|
||
- `expression` (String) Generated. | ||
- `id` (String) The ID of this resource. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
package provider | ||
|
||
import ( | ||
"context" | ||
|
||
"github.com/hashicorp/terraform-plugin-sdk/v2/diag" | ||
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" | ||
) | ||
|
||
func dataSourceRACPropertyMapping() *schema.Resource { | ||
return &schema.Resource{ | ||
ReadContext: dataSourceRACPropertyMappingRead, | ||
Description: "Customization --- Get RAC Property mappings", | ||
Schema: map[string]*schema.Schema{ | ||
"name": { | ||
Type: schema.TypeString, | ||
Optional: true, | ||
ConflictsWith: []string{"managed_list"}, | ||
}, | ||
"managed": { | ||
Type: schema.TypeString, | ||
Optional: true, | ||
}, | ||
|
||
"managed_list": { | ||
Type: schema.TypeList, | ||
Optional: true, | ||
Elem: &schema.Schema{ | ||
Type: schema.TypeString, | ||
}, | ||
Description: "Retrieve multiple property mappings", | ||
}, | ||
|
||
"ids": { | ||
Type: schema.TypeList, | ||
Optional: true, | ||
Computed: true, | ||
Elem: &schema.Schema{ | ||
Type: schema.TypeString, | ||
}, | ||
Description: "List of ids when `managed_list` is set.", | ||
}, | ||
|
||
"settings": { | ||
Type: schema.TypeString, | ||
Optional: true, | ||
Computed: true, | ||
}, | ||
"expression": { | ||
Type: schema.TypeString, | ||
Computed: true, | ||
}, | ||
}, | ||
} | ||
} | ||
|
||
func dataSourceRACPropertyMappingRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { | ||
var diags diag.Diagnostics | ||
c := m.(*APIClient) | ||
|
||
req := c.client.PropertymappingsApi.PropertymappingsRacList(ctx) | ||
|
||
if ml, ok := d.GetOk("managed_list"); ok { | ||
req = req.Managed(castSlice[string](ml.([]interface{}))) | ||
} else if m, ok := d.GetOk("managed"); ok { | ||
req = req.Managed([]string{m.(string)}) | ||
} | ||
|
||
if n, ok := d.GetOk("name"); ok { | ||
req = req.Name(n.(string)) | ||
} | ||
|
||
res, hr, err := req.Execute() | ||
if err != nil { | ||
return httpToDiag(d, hr, err) | ||
} | ||
|
||
if len(res.Results) < 1 { | ||
return diag.Errorf("No matching mappings found") | ||
} | ||
if _, ok := d.GetOk("managed_list"); ok { | ||
d.SetId("-1") | ||
ids := make([]string, len(res.Results)) | ||
for i, r := range res.Results { | ||
ids[i] = r.Pk | ||
} | ||
setWrapper(d, "ids", ids) | ||
} else { | ||
f := res.Results[0] | ||
d.SetId(f.Pk) | ||
setWrapper(d, "name", f.Name) | ||
setWrapper(d, "name", f.Name) | ||
setWrapper(d, "expression", f.Expression) | ||
setWrapper(d, "settings", f.StaticSettings) | ||
} | ||
return diags | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters