def list_management_groups(resource_group_name, workspace_name, custom_headers:nil)
      response = list_management_groups_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
def list_management_groups(resource_group_name, workspace_name, custom_headers:nil)
      response = list_management_groups_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
Gets a list of management groups connected to a workspace.

 @param resource_group_name [String] The name of the resource group to get.
 The name is case insensitive.
 @param workspace_name [String] The name of the workspace.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [WorkspaceListManagementGroupsResult] operation results.