Skip to content

Commit

Permalink
feat: add missing hiararchy mg methods (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-FFFFFF authored Jun 27, 2024
1 parent 8508db1 commit 44dacbd
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions deployment/managementgroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,21 @@ func (mg *HierarchyManagementGroup) ParentIsExternal() bool {
return false
}

// Exists returns a bool value depending on whether the management group exists.
func (mg *HierarchyManagementGroup) Exists() bool {
return mg.exists
}

// Level returns the level of the management group in the hierarchy.
func (mg *HierarchyManagementGroup) Level() int {
return mg.level
}

// Location returns the default location to use for artifacts in the management group.
func (mg *HierarchyManagementGroup) Location() string {
return mg.location
}

// ResourceId returns the resource ID of the management group.
func (mg *HierarchyManagementGroup) ResourceId() string {
return fmt.Sprintf(ManagementGroupIdFmt, mg.id)
Expand Down

0 comments on commit 44dacbd

Please sign in to comment.