Skip to content

Commit ce25a04

Browse files
authored
feat(iam): expose condition field (#2154)
1 parent 006c59e commit ce25a04

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

api/iam/v1alpha1/iam_sdk.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -791,6 +791,9 @@ type RuleSpecs struct {
791791
// PermissionSetNames: names of permission sets bound to the rule.
792792
PermissionSetNames *[]string `json:"permission_set_names"`
793793

794+
// Condition: condition expression to evaluate.
795+
Condition string `json:"condition"`
796+
794797
// ProjectIDs: list of Project IDs the rule is scoped to.
795798
// Precisely one of ProjectIDs, OrganizationID must be set.
796799
ProjectIDs *[]string `json:"project_ids,omitempty"`
@@ -1063,6 +1066,9 @@ type Rule struct {
10631066
// Default value: unknown_scope_type
10641067
PermissionSetsScopeType PermissionSetScopeType `json:"permission_sets_scope_type"`
10651068

1069+
// Condition: condition expression to evaluate.
1070+
Condition string `json:"condition"`
1071+
10661072
// ProjectIDs: list of Project IDs the rule is scoped to.
10671073
// Precisely one of ProjectIDs, OrganizationID, AccountRootUserID must be set.
10681074
ProjectIDs *[]string `json:"project_ids,omitempty"`

0 commit comments

Comments
 (0)