add identity field to the template
This commit is contained in:
parent
b5b2982772
commit
d9c9bfbae8
@ -34,6 +34,7 @@ type Resource struct {
|
|||||||
Properties *Properties `json:"properties,omitempty"`
|
Properties *Properties `json:"properties,omitempty"`
|
||||||
Tags *map[string]*string `json:"tags,omitempty"`
|
Tags *map[string]*string `json:"tags,omitempty"`
|
||||||
Resources *[]Resource `json:"resources,omitempty"`
|
Resources *[]Resource `json:"resources,omitempty"`
|
||||||
|
Identity *Identity `json:"identity,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Plan struct {
|
type Plan struct {
|
||||||
@ -98,6 +99,17 @@ type Properties struct {
|
|||||||
Value *string `json:"value,omitempty"`
|
Value *string `json:"value,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Template > Resource > Identity
|
||||||
|
type Identity struct {
|
||||||
|
Type *string `json:"type,omitempty"`
|
||||||
|
UserAssignedIdentities map[string]*UserAssignedIdentitiesValue `json:"userAssignedIdentities"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type UserAssignedIdentitiesValue struct {
|
||||||
|
PrincipalId *string `json:"principalId,omitempty"`
|
||||||
|
ClientId *string `json:"clientId,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
type AccessPolicies struct {
|
type AccessPolicies struct {
|
||||||
ObjectId *string `json:"objectId,omitempty"`
|
ObjectId *string `json:"objectId,omitempty"`
|
||||||
TenantId *string `json:"tenantId,omitempty"`
|
TenantId *string `json:"tenantId,omitempty"`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user